package com.jni.zlib.ui;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;

import com.jni.zlib.R;
import com.jni.zlib.jni.CurlUtils;

/**
 * @ClassName: MainActivity
 * @Description:
 * @Author wk
 * @Date 2015/10/23 0023
 */
public class MainActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.test);
        findViewById(R.id.btn_click).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                try {
                    String html  = CurlUtils.httpGet("http://v.juhe.cn/weather/index?callback=jQuery183015819076797924936_1447236079933&cityname=%E5%8C%97%E4%BA%AC&dtype=jsonp&key=8d02723a537acf1ff0c7019bdc48ff00&_=1447236086177");
                    Log.d("tag",html);
                   // ZipFileUtils.zipFile("p123123");

                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        });
    }
}
